package AbstractFactoryDemo.example.factory;

import java.util.ArrayList;

/**
 * @author zsh
 * @Description
 * @create 2022-07-03 20:01
 */
public abstract class Tray extends Item {
    protected ArrayList<Item> tray = new ArrayList<>();
    public Tray(String caption) {
        super(caption);
    }
    public void add(Item item){
        tray.add(item);
    }
}
